\begin{frame}[fragile]{有用的 PDF 工具}
  \begin{columns}
    \column{0.25\linewidth}
    \begin{itemize}
      \item \texttt{pdfattach}
      \item \texttt{pdfdetach}
      \item \texttt{pdfcrop}
      \item \texttt{pdftocairo}
      \item \texttt{pdfseparate}
      \item \texttt{pdfunite}
    \end{itemize}
    \column{0.6\linewidth}
\begin{commandshell}
for %a in (*.pdf) do pdfcrop %a 
for %a in (*.pdf) do pdftocairo -svg %a 
\end{commandshell}
  \end{columns}
  \end{frame}
  
\begin{frame}{幻灯片{\footnotesize（BTW: 这个东西要用英文也是 slides，不是屁屁剔）}}
  \centering\includegraphics[height=0.37\textheight]{figures/part1/beamer1.png}\qquad\includegraphics[height=0.37\textheight]{figures/part1/beamer2.png}\\[5mm]
  \includegraphics[height=0.37\textheight]{figures/part1/beamer5.png}\qquad\includegraphics[height=0.37\textheight]{figures/part1/beamer4.png}
\end{frame}

\begin{frame}{动画}
\centering
\begin{animateinline}[controls=all]{9}%
  \multiframe{15}{rx=-4.0+0.5}{
      \begin{tikzpicture}[scale=0.7,>=stealth]
        \filldraw [top color=gray,bottom color=white,thick] (-5.5,0) rectangle (5.5,0.5);
      \filldraw [darkgray,thick] (-5.8,0.55) rectangle (5.8,0.7);
      \draw [thin] (-5,0)--++(-0.15,-0.2)--++(0.3,0)--cycle;
      \draw [thin] (5,-0.1) circle (0.1);
      \filldraw [ball color=lightgray] (-5.6,0.5)--++(-0.2,0)--++(0,-1.5)--++(1.2,0)--++(0,0.8)--++(-1.0,0)--cycle;
      \filldraw [ball color=lightgray] (5.6,0.5)--++(0.2,0)--++(0,-1.5)--++(-1.2,0)--++(0,0.8)--++(1.0,0)--cycle;
      \draw [ultra thick,->] (\rx,1.5)--++(0,-0.8) node [at start,above] {$F_1$};
      \draw [ultra thick,->] (\rx+1,1.5)--++(0,-0.8) node [at start,above] {$F_2$};
      \begin{scope}[yshift=4cm]
        \filldraw [top color=gray,bottom color=white,thick] (-5.5,0) rectangle (5.5,0.5);
        \filldraw [darkgray,thick] (-5.8,0.55) rectangle (5.8,0.7);
        \draw [thin] (-5,0)--++(-0.15,-0.2)--++(0.3,0)--cycle;
        \draw [thin] (5,-0.1) circle (0.1);
        \filldraw [ball color=lightgray] (-5.6,0.5)--++(-0.2,0)--++(0,-1.5)--++(1.2,0)--++(0,0.8)--++(-1.0,0)--cycle;
        \filldraw [ball color=lightgray] (5.6,0.5)--++(0.2,0)--++(0,-1.5)--++(-1.2,0)--++(0,0.8)--++(1.0,0)--cycle;
      \coordinate (B) at (\rx, 0.82);
      \coordinate (F) at (\rx+1, 0.82);
      \draw [thick](B) circle (0.10);
      \draw [thick](F) circle (0.10);
      \filldraw [ball color = blue,thick]([shift=(195:0.15)]B) arc (195:-15:0.15) --([shift=(0:0.25)]B)--
      ++(0.5,0)--([shift=(195:0.15)]F) arc(195:-15:0.15)
      --++(0.16,0)--++(0.02,0.08)--++(-0.09,0.04)--++(-0.03,0.1)--++(-0.35,0.07)--++(-0.22,0.19)
      --++(-0.18,0.02)--++(-0.13,0.0)--++(-0.25,-0.03)--++(-0.38,-0.21)--++(-0.01,-0.12)
      --++(-0.03,-0.03)--++(0,-0.04)--++(0.03,-0.04)--cycle;
      \end{scope}
      \fill[opacity=0.5,color=teal](-5,0)--(\rx,0.02*\rx*\rx+0.01*\rx-0.45)--(\rx+1,0.02*\rx*\rx+0.03*\rx-0.44)--(5,0)--cycle;
      \end{tikzpicture}}
  \end{animateinline}
\end{frame}

\begin{frame}{嵌入真 3D 模型}
\centering
\includemedia[height=0.8\textheight,3Dmenu]{\includegraphics{figures/part1/ml.pdf}}{figures/part1/Drawing1.u3d}
\end{frame}

\begin{frame}{学术海报}
\includegraphics[width=0.85\linewidth]{figures/part1/hb.pdf} {\tiny 图片来源：\href{https://www.latexstudio.net/archives/51465.html}{\faLink}}
\end{frame}

\begin{frame}{试卷}\centering
\fbox{\includegraphics[height=0.8\textheight]{figures/part1/shijuan.pdf}}\quad{\tiny 图片来源：\href{https://www.latexstudio.net/index/details/index/mid/695.html}{\faLink}}
\end{frame}
\begin{frame}{答题卡}\centering
\fbox{\includegraphics[height=0.8\textheight]{figures/part1/dtk.pdf}}\quad{\tiny 图片来源：\href{https://www.latexstudio.net/archives/9513.html}{\faLink}}
\end{frame}

\begin{frame}{乐谱}
\centering\fbox{\includegraphics[page=1,height=0.8\textheight]{figures/part1/gongxi.pdf}}\fbox{\includegraphics[page=2,height=0.8\textheight]{figures/part1/gongxi.pdf}}\quad{\tiny 图片来源：\href{https://www.latexstudio.net/archives/11337.html}{\faLink}}
\end{frame}

\begin{frame}{弈棋耍大牌}
\begin{columns}
\column{0.4\linewidth}
\includegraphics[height=0.75\textheight]{figures/part1/wuzi.pdf}\pause
\column{0.6\linewidth}
\includegraphics[height=0.75\textheight]{figures//part1/cbridge.pdf}\pause
\mahjong{22"2z}
\end{columns}
\end{frame}
